﻿using Traceability.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Domain
{
    /// <summary>
    /// 企业表
    /// </summary>
    public class Enterprise : BaseEntity
    {
        /// <summary>
        /// 企业ID
        /// </summary>
        [Key]
        public int EnterpriseId { get; set; }

        /// <summary>
        /// 养殖场
        /// </summary>
        public string? livestockFarm { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string? PersonInCharge { get; set; }

        /// <summary>
        /// 存栏数量
        /// </summary>
        public int InventoryQuantity { get; set; }

        /// <summary>
        /// 屠宰公司名称
        /// </summary>
        public string? SlaughterCompanyName { get; set; }

        /// <summary>
        /// 屠宰公司成立时间
        /// </summary>
        public DateTime EstablishmentTime { get; set; }

        /// <summary>
        /// 屠宰公司简介
        /// </summary>
        public string? CompanyProfile { get; set; }

        /// <summary>
        /// 省份ID
        /// </summary>
        public int ProvinceId { get; set; }

        /// <summary>
        /// 城市ID
        /// </summary>
        public int CityId { get; set; }

        /// <summary>
        /// 县ID
        /// </summary>
        public int CountyId { get; set; }

        /// <summary>
        /// 深加工公司名称
        /// </summary>
        public string? DeepProcessingCompanyName { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string? ProductionLicenseNumber { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public int ShoppingId { get; set; }

    }
}
